package com.xlisteven.web5.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xlisteven.web5.mapper.UserMapper;
import com.xlisteven.web5.pojo.User;
import com.xlisteven.web5.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper userMapper;

	@Override
	public int insertUser(User user) {
		return userMapper.insertUser(user);
	}

	@Override
	public List<User> findAllUser() {
		return userMapper.findAllUser();
	}

}
